<%@ Page Language="C#" MasterPageFile="~/AnadoluBazaarGiris.Master" AutoEventWireup="true" CodeBehind="UrunGoster.aspx.cs" Inherits="OnlineAnadolu.UrunGoster" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:TreeView ID="TreeView1" runat="server">
        <Nodes>
            <asp:TreeNode Text="Sectikleriniz" Value="Sectikleriniz"></asp:TreeNode>
        </Nodes>
    </asp:TreeView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
        SelectCommand="SELECT [categoryid] FROM [categories] WHERE ([parentid] = @parentid)">
        <SelectParameters>
            <asp:QueryStringParameter Name="parentid" QueryStringField="CatId" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="categoryid"
        DataSourceID="SqlDataSource1" Visible="False">
        <Columns>
            <asp:BoundField DataField="categoryid" HeaderText="categoryid" InsertVisible="False"
                ReadOnly="True" SortExpression="categoryid" />
        </Columns>
    </asp:GridView>
    <asp:DataList ID="DataList1" runat="server" RepeatColumns="2" Width="159px" OnItemCommand="DataList1_ItemCommand">
        <ItemTemplate>
            <br>
            <table class="style1" style="width: 100%">
                <tr>
                    <td align="center" style="width: 197px">
                        <table cellpadding="0" cellspacing="0" class="style1" width="200">
                            <tr>
                            </tr>
                            <tr>
                                <td class="style2" colspan="2">
                                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("productimage") %>' Width="50px" />&nbsp;</td>
                            </tr>
                            <tr>
                                <td colspan="2" style="font-family: 'Franklin Gothic Book'">
                                    <asp:Label ID="lblUrunAdi" runat="server" Font-Names="Franklin Gothic Demi" Font-Size="Small"
                                        Text='<%# Eval("name") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="font-family: 'Franklin Gothic Book'">
                                    Fiyat:
                                    <asp:Label ID="lblFiyat" runat="server" Font-Names="Franklin Gothic Medium" Text='<%# Eval("price") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:ImageButton ID="btnHemenAl" runat="server" CommandArgument='<%# Eval("productid") %>'
                                        ImageUrl="images/hemenal.jpg" />
                                </td>
                                <td>
                                    <asp:ImageButton ID="btnDetay" runat="server" ImageUrl="images/detay.jpg" CommandName="detay" CommandArgument='<%# Eval("productid") %>'/>&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
</asp:Content>